package com.xydzxt.www.controller.student;


import org.springframework.stereotype.Controller;

import javax.servlet.http.HttpServlet;
import java.io.IOException;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
@Controller
public class ApplicationController extends HttpServlet {
    @GetMapping("/application")
    public String application(HttpServletRequest request, HttpServletResponse response) throws IOException {

        HttpSession session=request.getSession();

        if (session.getAttribute("sfzh")!=null){
            return "student/systemApplication";
        }else {
            response.sendRedirect("index");
        }

        return "";
    }
}
